﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace DataAccess
{
    public class MyCommand
    {
        private static SqlCommand cmd;
        private static SqlConnection connec;
        public static SqlCommand Command(string _CommandText,SqlConnection cn)
        {
            connec = cn;
            cmd = connec.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = _CommandText;
            return cmd;
        }
    }
}
